<template>
  <div>
    <span class="text-blue pointer" @click="toEdit">
      {{ data.applyNo }}
    </span>

    <el-dialog
      title="详情"
      :visible.sync="centerDialogVisible"
      width="90%"
      center
    >
      <ApplyDiscountEdit
        ref="applyDiscountEdit"
        :data="data"
        :optType="optType"
      ></ApplyDiscountEdit>
    </el-dialog>
  </div>
</template>

<script>
import axios from "axios";
import * as constant from "@/store/yg/common/constant";
import { ajax, actionPermission } from "@/store/yg/common/utils";
import { m } from "@/store/yg/common/local";

const ApplyDiscountEdit = () =>
  import("@/components/app/edit/customer/applydiscount/ApplyDiscountEdit");
export default {
  props: ["row", "data", "more"],
  components: {
    ApplyDiscountEdit
  },
  data() {
    return { centerDialogVisible: false, optType: "viewInof" };
  },

  methods: {
    m(val) {
      return m(val);
    },

    toEdit() {
      this.centerDialogVisible = true;
    }
  },
  mounted() {
    console.log(this.data);
  }
};
</script>

<style></style>
